package com.baba.bracelet.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.baba.bracelet.base.BaseResponse;
import com.baba.bracelet.service.TokenService;
import com.baba.bracelet.utils.OkHttpUtil;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * @author wulongbo
 * @version 1.0
 * @date 2020/6/5 10:18
 * @description
 */
@Service
public class TokenServiceImpl implements TokenService {

    @Override
    public String getToken(String url,String customerId, String secretKey) {
        Map<String,Object> parmMap=new HashMap<String, Object>();
        parmMap.put("customerId",customerId);
        parmMap.put("secretKey",secretKey);
        return OkHttpUtil.doGetHttpRequest(url,parmMap);
    }
}
